package com.dmooo.yxmmerchant.fragment.contract;

import com.common.mvpbase.BaseView;
import com.common.net.listener.HttpOnNextListener;
import com.dmooo.yxmmerchant.domain.ExpressDetailBean;
import com.dmooo.yxmmerchant.domain.LogisticsListBean;
import com.dmooo.yxmmerchant.domain.ServiceOrderDetailBean;
import com.dmooo.yxmmerchant.domain.ServiceOrderListBean;

import java.io.File;
import java.util.List;

public class ServiceOrderContract {
    public interface ServiceOrderView extends BaseView {
        void showUserOrderList(List<ServiceOrderListBean.Item> items);
        void cancleSuccess(int pos);
        void applyBackMoneySuccess();
        void showLogisticsList(List<LogisticsListBean.Item> items);
        void fillInRefundExpressNumSuccess(int pos);
        void showExpressList(List<ExpressDetailBean.Item.Child> items);
        void checkBackMoneySuccess();
        void confirmOrderSuccess(int pos);
        void showOrderDetail(ServiceOrderDetailBean orderDetailBean);
    }
    public interface ServiceOrderMdl{
        void getUserOrderList(String token, int status, int page, HttpOnNextListener listener);
        void cancleOrder(String token, String order_id, HttpOnNextListener listener);
        void getLogisticsList(HttpOnNextListener listener);
        void confirmOrder(String token, String order_detail_id, HttpOnNextListener listener);
        void getLogisticsDetail(String token, String logistics, String express_number, HttpOnNextListener listener);
        void fillInRefundExpressNum(String token, String order_detail_id, HttpOnNextListener listener);
//        token	char(32)	是	用户身份令牌
//        order_detail_id	int(10)	是	订单详情ID
//        drawback_reason	varchar(300)	是	申请退款理由
//        drawback_img	file	否	申请退款凭证图片，多张
        void checkServiceBackMoney(String token, String order_detail_id, String check_result, String drawback_refuse_reason, HttpOnNextListener listener);
        void getOrderDetail(String order_id, String order_detail_id, HttpOnNextListener listener);
        void applyBackMoney(String token, String order_detail_id, String drawback_reason, List<File> drawback_img, HttpOnNextListener listener);
    }
    public interface ServiceOrderPtr{
        void getUserOrderList(String token, int status, int page);
        void confirmOrder(String token, String order_detail_id, int pos);
        void fillInRefundExpressNum(String token, String order_detail_id,int pos);
        void cancleOrder(String token, String order_id, int pos);
        void getLogisticsList();
        void getOrderDetail(String order_id, String order_detail_id);
        void getLogisticsDetail(String token, String logistics, String express_number);
        void applyBackMoney(String token, String order_detail_id, String drawback_reason, List<File> drawback_img);
        void checkServiceBackMoney(String token, String order_detail_id, String check_result, String drawback_refuse_reason);
    }
}
